package cn.edu.scau.cmi.xianjiehua.composite;

import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;

public class Main extends Application {
	Stage stage = new Stage();
	
    public void showWindow() {
    	start(stage);
    }
    @Override
    public void start(Stage primaryStage) {
        try {
            Parent root = FXMLLoader.load(getClass()
                    .getResource("/cn/edu/scau/cmi/xianjiehua/composite/view.fxml"));

            primaryStage.setTitle("实验七组合模式");
            primaryStage.setScene(new Scene(root));
            primaryStage.show();

        } catch(Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        launch(args);
    }
}